//
//  HBDateChooseView.h
//  HBLibary
//
//  Created by Rambo on 2019/6/8.
//

#import <UIKit/UIKit.h>

typedef void(^HBDateChooseViewHandler)(UIDatePicker *datePicker);

NS_ASSUME_NONNULL_BEGIN

@interface HBDateChooseView : UIView

+ (instancetype)showWithTitle:(NSString*)title leftToolTitle:(NSString*)leftToolTitle rightToolTitle:(NSString*)rightToolTitle complete:(HBDateChooseViewHandler)complete;

@property (nonatomic, strong, readonly) UIView *topToolView;

@property (nonatomic, strong, readonly) UIButton *rightButton;

@property (nonatomic, strong, readonly) UILabel *titleLabel;

@property (nonatomic, strong, readonly) UIButton *leftButton;

@property (nonatomic, strong, readonly) UIDatePicker *datePicker;

@property (nonatomic, assign) BOOL canTouchDismiss;

@property (nonatomic, strong) UIColor *datePickerLineColor;

- (instancetype)init UNAVAILABLE_ATTRIBUTE;
- (instancetype)initWithFrame:(CGRect)frame UNAVAILABLE_ATTRIBUTE;
+ (instancetype)new UNAVAILABLE_ATTRIBUTE;

@end

NS_ASSUME_NONNULL_END
